package com.cjx.admin.service;

import com.cjx.admin.api.AdminRoleService;
import com.cjx.admin.dao.AdminUserRoleMapper;
import com.cjx.admin.dto.AdminRoleDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
*@Description 角色服务层
*@Verson v1.0.0
*@Author cjunxian
*@Date
*/
@Service
public class AdminRoleServiceImpl implements AdminRoleService {

    @Autowired
    AdminUserRoleMapper adminUserRoleMapper;

    @Override
    public List<AdminRoleDTO> getRolesByUserId(String userId) {
        return adminUserRoleMapper.getRolesByUserId(userId);
    }
}
